﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace msBsc.WebUi.wMall.Seller
{
    public partial class wfAgentDjackInfo : msBsc.Cls.BPProxyDealer
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        //初始化用户信息
        private void getDjackInfo()
        {
            string djackId = msBsc.SvRef.UserInfo.Operator;
            if (string.IsNullOrEmpty(djackId))
            {
                return;
            }
            using (msBsc.AppLogic.DataAlc.CBizCustomerBaseInfo objCBizCustomerBaseInfo = new AppLogic.DataAlc.CBizCustomerBaseInfo())
            {
                System.Data.DataSet ds = objCBizCustomerBaseInfo.GetAgentDjackDetailById(msBsc.SvRef.UserInfo.Operator);
                if (ds != null)
                {
                    string retJson = msBsc.AppLogic.Cfg.HttpTools.GetJsonByTable(ds.Tables[0], "", "", 1, 50, "");
                    this.ExecJScript(@"setDjackInfo(" + retJson + ")");
                }
            }
        }

        public override void DoAction()
        {
            if (this.strAction=="init")
            {
                getDjackInfo();
            }
        }
    }
}